const state = {
    menus: [{
        id: '1',
        name: '系统管理',
        path: '/system',
        children: [{
            id: '1-1',
            name: '用户管理',
            path: '/system/user'
        }, {
            id: '1-2',
            name: '角色管理',
            path: '/system/role'
        }, {
            id: '1-3',
            name: '菜单管理',
            path: '/system/menu'
        }]
    }, {
        id: '2',
        name: '新闻管理',
        path: '/new',
        children: [{
            id: '2-1',
            name: '新闻列表',
            path: '/c2/m1'
        }]
    }, {
        id: '3',
        name: '外部教程',
        path: 'https://panjiachen.github.io/vue-element-admin-site/zh/guide/',
        children: []
    }]
}
const mutations = {
    SET_MENUS: (state, menus) => {
        state.menus = menus
    }
}
export default {
    namespaced: true,
    state,
    mutations,
}
